<%--
  Created by IntelliJ IDEA.
  User: lt
  Date: 2017/5/3
  Time: 10:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML>
<html>
<head>
    <%@ include file="/common/include-core.jsp" %>
    <title>分销商列表</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 分销商管理 <span class="c-gray en">&gt;</span> 分销商列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
    <div class="text-c">
        <form action="/distributor/distributorList.html" method="post" id="searchForm">
            <input type="hidden" id="superiorId" name="superiorId" value="${bean.superiorId }" />
            <input type="hidden" id="count" value="${pageinfo.total }" />
            <input type="hidden" id="page" name="page" value="${pageinfo.pageNum }" />
            <input type="hidden" id="pageSize" name="pageSize" value="${pageinfo.pageSize }" />
            <select class="select-box"  style="width:250px" name="distributorType" id="distributorType">
                <option value="" ${bean.distributorType==""?"selected":""}>无</option>
                <option value="1" ${bean.distributorType==1?"selected":""}>一级</option>
                <option value="2" ${bean.distributorType==2?"selected":""}>二级</option>
                <option value="3" ${bean.distributorType==3?"selected":""}>三级</option>
                <option value="4" ${bean.distributorType==4?"selected":""}>四级</option>
                <option value="5" ${bean.distributorType==5?"selected":""}>五级</option>
                <option value="6" ${bean.distributorType==6?"selected":""}>六级</option>
            </select>
            <input type="hidden" class="input-text" style="width:250px" placeholder="输入用户电话" name="parentId" value="${bean.parentId}">
            <button type="submit" class="btn btn-success radius" ><i class="Hui-iconfont">&#xe665;</i> 搜用户</button>

<%--            <button name="" class="btn btn-success" type="button" onclick='exportExcel();' id="exportd export">
                <i class="Hui-iconfont">&#xe640;</i> 导出Excel</button>--%>
            <button type="button" class="btn btn-success radius" id="printCode"><i class="Hui-iconfont">&#xe665;</i> 打印二维码</button>
        </form>
    </div>
    <div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l"> <a class="btn btn-primary radius" onclick="layer_show('添加新分销商','/distributor/distributor.html','')" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 添加新分销商</a></span> <%--<span class="r">共有数据：<strong>54</strong> 条</span> --%></div>

    <div class="mt-20">
        <table class="table table-border table-bordered table-hover table-bg table-sort">
            <thead>
            <tr class="text-c">
                <th width="80">序号</th>
                <th width="100">分销名称</th>
                <th width="90">电话</th>
                <th width="90">地址</th>
                <th width="90">分销商Code</th>
                <th width="150">注册时间</th>
                <th width="100">操作</th>
            </tr>
            </thead>
            <tbody>
                <c:forEach items="${pageinfo.list}" var="item" varStatus="status">
                    <tr class="text-c">
                      <td>${status.index+1}</td>
                        <td>${item.name}</td>
                        <td>${item.phone}</td>
                        <td>${item.address}</td>
                         <td>${item.code}</td>
                         <td>  <fmt:formatDate value="${item.createTime}" pattern="yyyy-MM-dd HH:mm"/></td>

                        <td class="td-manage">

                       <%--     <a style="text-decoration:none" onClick="layer_show('设置上级经销商','/distributor/distributor.html?tid=${item.tid}','')" href="javascript:;" title="设置上级经销商"><i class="Hui-iconfont">&#xe6df;</i></a>
   --%>                         <a style="text-decoration:none" onClick="layer_show('查看下级经销商','/distributor/distributorList.html?superiorId=${item.tid}','')" href="javascript:;" title="查看下级经销商"><i class="Hui-iconfont">&#xe725;</i></a>
                        </td>
                    </tr>
                </c:forEach>
            </tbody>
        </table>
        <div class="ui-page tr mt10" style="float: right;margin-top: 10px;margin-bottom: 10px"></div>
    </div>

</div>

<script type="text/javascript" src="/static/js/distributor/distributorList.js"></script>
</body>
</html>
<%@ include file="/common/include-footer.jsp" %>